import { IsNumber } from "../methods/judge";
import { GaRegExp, FuncHandle } from '../rule';

const rule = new GaRegExp([
	"a\\s",
	(save, origin, rule, str, index, char, length) => IsNumber(char),
	"{3,9}\\sa[abc]{2,6}(kkk(\\s[123]a{1,2})kkk)(123|[456]{0,2}|789{1,2})",

	"|789",
	"|5656",
	"|",
	new GaRegExp([
		"aaa", { ruleType: "func", ruleData: () => { console.log("aaa over"); } },
		"|bbb",
		"|ccc",
	])
]);

console.log(rule.RegExpList.origin);
console.log(rule.RegExpList.list);

console.log(rule.Test(`a 123 abbckkk 1akkk`));
console.log(rule.Test(`aaa`));
debugger;
